<template>
  <div>
    <Vheader title="选择城市"></Vheader>
    <div class="indexlist-wrapper">
      <div class="current-city">您当前定位的城市：杭州市</div>
      <div class="hots-city">
        <div class="hots-city-title">热门城市</div>
        <div class="hots-city-content">
          <span class="hots-city-btn">北京</span>
          <span class="hots-city-btn">北京</span>
          <span class="hots-city-btn">北京</span>
          <span class="hots-city-btn">北京</span>
          <span class="hots-city-btn">北京</span>
          <span class="hots-city-btn">北京</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  import Vheader from '../../components/header.vue'
  export default {
    data() {
      return {};
    },
    created() {

    },
    mounted() {

    },
    methods: {},
    components: {Vheader}
  };
</script>

<style type="text/scss" lang="scss">
  .indexlist-wrapper{
    width: 100%;
    position: absolute;
    top:44px;
    .current-city{
      width: 100%;
      line-height: 50px;
      padding: 0 10px;
      font-size: 15px;
      box-sizing: border-box;
    }
    .hots-city{
      width: 100%;
      margin-top: 10px;
      .hots-city-title{
        padding: 0 10px;
        font-size: 14px;
        color: #bababa;
        line-height: 40px;
        box-sizing: border-box;
      }
      .hots-city-content{
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        .hots-city-btn{
          width: calc((100% - 20px) / 3);
          display: block;
          margin-bottom: 10px;
          border: solid 1px #bababa;
          text-align: center;
          line-height: 35px;
          box-sizing: border-box;
        }
        .hots-city-btn:not(:nth-child(3n)){
          margin-right: 10px;
        }
      }
    }
  }
</style>
